package com.dubito.dose.extension

import java.text.SimpleDateFormat
import java.util.*

/**
 * author: LiLiang
 * createTime: 2022/9/4-15:19
 * remark:
 **/
fun Date.toFormattedString(): String {
    val sdf = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
    return sdf.format(this)
}